<!--
 *this file is part of nseer erp
 *Copyright (C)2006-2010 Nseer(Beijing) Technology co.LTD/http://www.nseer.com 
 *
 *This program is free software; you can redistribute it and/or
 *modify it under the terms of the GNU General Public License
 *as published by the Free Software Foundation; either
 *version 2 of the License, or (at your option) any later version.
 -->
<%@page contentType="text/html; charset=UTF-8" language="java"
	import="java.sql.*,include.nseer_cookie.*" import="java.util.*"
	import="java.io.*" import="include.nseer_db.*,java.text.*"%>
<%@ page import="include.anti_repeat_submit.Globals"%>
<%@include file="../../include/head.jsp"%>
<jsp:useBean id="demo" class="include.tree_index.businessComment"
	scope="page" />
	<%nseer_db stock_db = new nseer_db((String)session.getAttribute("unit_db_name"));%>
<%
	DealWithString DealWithString = new DealWithString(application);
	String mod = request.getRequestURI();
	demo.setPath(request);
	String handbook = demo.businessComment(mod, "您正在做的业务是：",
			"document_main", "reason", "value");
%>

<script type="text/javascript" src="../../../dwr/engine.js"></script>
<script type="text/javascript" src="../../../dwr/util.js"></script>
<script type="text/javascript" src="../../../dwr/interface/Multi.js"></script>
<script type="text/javascript"
	src="../../../dwr/interface/multiLangValidate.js"></script>
<script type="text/javascript"
	src="../../../dwr/interface/validateV7.js"></script>
<script type="text/javascript" src="../../../javascript/calendar/cal.js"></script>
<script type="text/javascript"
	src="../../../javascript/include/validate/validation-framework.js"></script>
<script language="javascript"
	src="../../../javascript/ajax/ajax-validation.js"></script>
	<script type="text/javascript">
<!--
	function doformCheck(){
	var validator_dup_name = document.getElementById("validator_dup").value;
	if(validator_dup_name.length==0){
		alert("职位分类名称不能为空！");return false;
	}else{
		return true;
	}
	}
//-->
</script>
<table <%=TABLE_STYLE2%> class="TABLE_STYLE2">
	<tr <%=TR_STYLE1%> class="TR_STYLE1">
		<td <%=TD_HANDBOOK_STYLE1%> class="TD_HANDBOOK_STYLE1">
		<div class="div_handbook"><%=handbook%></div>
		</td>
	</tr>
</table>
<div id="nseerGround" class="nseerGround">
<form id="majorFirstKindRegister" class="x-form" method="post"
	action="../../../hr_config_file_majorFirstKind_register_ok"
	onSubmit="return doformCheck()">
<table <%=TABLE_STYLE2%> class="TABLE_STYLE2">
	<tr <%=TR_STYLE1%> class="TR_STYLE1">
		<td <%=TD_STYLE3%> class="TD_STYLE3">
		<div id="loaddiv"
			style="display:none;border:1px solid red; height:20px;background-color: #FF0033;width:80%;float :left ;"></div>
		<div <%=DIV_STYLE1%> class="DIV_STYLE1"><input type="submit"
			<%=SUBMIT_STYLE1%> class="SUBMIT_STYLE1"
			value="<%=demo.getLang("erp","提交")%>">&nbsp;<input
			type="button" <%=BUTTON_STYLE1%> class="BUTTON_STYLE1"
			value="<%=demo.getLang("erp","返回")%>" onClick=location="majorFirstKind.jsp"></div>
		</td>
	</tr>
</table>
<%
String sql = "select FIRST_KIND_ID from hr_config_major_first_kind order by FIRST_KIND_ID desc limit 1";
ResultSet rs= stock_db.executeQuery(sql);
String first_kind_ID="";
if(rs.next()){
	first_kind_ID=rs.getString(1);
	first_kind_ID=(Integer.parseInt(first_kind_ID)+1)+"";
}else{
	first_kind_ID="1";
}

%>
<table <%=TABLE_STYLE7%> class="TABLE_STYLE7" id=theObjTable>
	<tr <%=TR_STYLE1%> class="TR_STYLE1">
		<td <%=TD_STYLE11%> class="TD_STYLE1" width="20%"><%=demo.getLang("erp", "职位分类编号")%></td>
		<td <%=TD_STYLE21%> class="TD_STYLE2" width="80%"><%=first_kind_ID%><input
			type="hidden" name="first_kind_ID" value="<%=first_kind_ID%>"></td>
	</tr>
	<tr <%=TR_STYLE1%> class="TR_STYLE1">
		<td <%=TD_STYLE11%> class="TD_STYLE1" width="20%"><%=demo.getLang("erp", "职位分类名称")%>&nbsp;</td>
		<td <%=TD_STYLE21%> class="TD_STYLE2" width="80%"><input
			<%=INPUT_STYLE1%> class="INPUT_STYLE1" type="text" id="validator_dup"
			name="first_kind_name" style="width=30%"
			onblur="ajax_validation('majorFirstKindRegister','validator_dup','hr_config_major_first_kind','first_kind_name','../../../vd',this)"></td>
	</tr>
</table>
<input type="hidden" name="<%=Globals.TOKEN_KEY%>"
	value="<%=session.getAttribute(Globals.TOKEN_KEY)%>"></form>
</div>
<%stock_db.close(); %>

